import createAxios from '/@/utils/axios'
import { useSiteConfig } from '/@/stores/siteConfig'
import { useAdminInfo } from '/@/stores/adminInfo'

const controllerUrl = '/admin/yxerp.category/'

export function getType(data: object) {
    return createAxios(
        {
            url: controllerUrl + 'type',
            method: 'get',
            data: data,
        },
        {
            showSuccessMessage: true,
        }
    )
}